<template>
    <div class="city-header">
        <div class="header-back iconfont" @click="backToIndex"></div>
        城市选择
    </div>
</template>

<script>
export default {
    name: 'CityHeader',
    methods: {
        backToIndex() {
            this.$router.push({
                path: '/'
            })
        }
    }
}
</script>

<style lang="scss" scoped>
@import '~styles/varibles.scss';
.city-header{
    position: relative;
    overflow: hidden;
    height: $headerHeight;
    line-height: $headerHeight;
    text-align: center;
    color: #fff;
    background: $bgColor;
    font-size: .32rem;
    .header-back{
        position: absolute;
        left: 0;
        &:after{
            float: left;
            font-size: .4rem;
            content: "\e658";
            text-align: center;
            width: 0.64rem;
        }
    }
}
</style>
